/**
 * @fileOverview minimap
 * @author huangtonger@aliyun.com
 */
// const G6 = require('@antv/g6');
import React from 'react';
const G6 = require('../../../g6/src');
// require('@antv/g6/build/plugin.tool.minimap');
const { Minimap=React.Component } = G6.Components;

class Component extends Minimap {
  constructor(options) {
    super({
      type: 'minimap',
      ...options
    });
  }
  bindPage(page) {
    const graph = page.getGraph();
    this.bindGraph(graph);
    this.debounceRender();
  }
}

export default Component;
